package com.example.multilevelapprovalback.controller;

import com.example.multilevelapprovalback.pojo.Result;
import com.example.multilevelapprovalback.service.AchievementTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/achievement-type")
public class AchievementTypeController {
    @Autowired
    private AchievementTypeService achievementTypeService;
    /**
     * 查询所有成果类别
     * @return
     */
    @GetMapping
    public Result get() {
        Object list = achievementTypeService.get();
        return Result.success(list);
    }
}
